package com.csd.action.message;

import com.csd.service.IMessageService;

/**
 * 
 * Action:删除消息
 * 
 * @author csd
 * @version 1.0
 * 
 * <br>
 *          修订时间：2009-12-17 <br>
 *          修改原因：创建文件 <br>
 *          修改人：何文深 <br>
 * 
 */
public class MessageDeleteAction {

	private Integer messageID;

	private IMessageService messageService;
	
	public Integer getMessageID() {
		return messageID;
	}

	public void setMessageID(Integer messageID) {
		this.messageID = messageID;
	}

	public IMessageService getMessageService() {
		return messageService;
	}

	public void setMessageService(IMessageService messageService) {
		this.messageService = messageService;
	}

	public String execute() throws Exception {
		String text = "fail";
		boolean bl = false;
		bl = messageService.deleteMessage(messageID);
		
		if (bl)
			text = "success";
		return text;
	}
}
